<template>
    <div>
用户管理
<el-button type="primary" @click="findRole">主要按钮</el-button>
    </div>
</template>

<script>
import { mapState } from "vuex";
import { find } from '../../api/user'
    export default {
        computed: {
    ...mapState(['userId'])
  },
        methods: {
            async findRole(){
                console.log(1)
                const res = await find({},{
                    ...this.userId
                })
                console.log(res)
            }
        }
    }
</script>

<style lang="less" scoped>

</style>